package com.sc.VenusQueryBeta.adapter.account;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.sc.VenusQueryBeta.R;
import com.sc.VenusQueryBeta.adapter.BaseCompatAdapter;
import com.sc.VenusQueryBeta.model.bean.account.AccountList;

import java.util.List;

/**
 * Created by Administrator on 2018/10/19.
 *
 */

public class XiaDaiKuanAdapter extends BaseCompatAdapter<AccountList.Clients,BaseViewHolder> {
    public XiaDaiKuanAdapter(int layoutResId, @Nullable List<AccountList.Clients> data) {
        super(layoutResId, data);
    }

    public XiaDaiKuanAdapter(int item_xiadaikuan) {
        super(item_xiadaikuan);
    }

    @Override
    protected void convert(BaseViewHolder helper, AccountList.Clients item) {
            helper.setText(R.id.tv_account_name,item.getClientid()); //户口
            helper.setText(R.id.tv_username,item.getClientnamecn()); //姓名
        if (item.getRedeemSum()==null) {
            helper.setText(R.id.tv_daishu_money, "0" + "萬");//贷赎金额
        }
        helper.setText(R.id.tv_heji,item.getCommonValue()+"萬"); //合计
    }
}
